
package com.hdoit.ares.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.tennetcn.common.annotation.QuartzTaskConfig;

@QuartzTaskConfig(cronTrigger = "0 0 10 * * ?", jobTitle = "根据金豆排序任务")
public class QuartzUpdateTaskSortJob implements Job {
	/*"0 0 6,8,12,15,18,20,22 * * ?"*/
	
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		// 任务临时注释
//		ITaskGoldenBeanService taskGoldenBeanService = CommonApplicationContextUtil.getCurrentContext().getBean(ITaskGoldenBeanService.class);
//		List<TaskGoldenBean> taskGoldenBeans = taskGoldenBeanService.queryList();
//		List<TaskGoldenBean> taskGoldenBeanList =taskGoldenBeanService.sortForArticalClassify(taskGoldenBeans);
//		if(taskGoldenBeanService.applyChangeSorts(taskGoldenBeanList)){
//			System.err.println("排名已更新1" + DateUtils.getCurrent());
//			System.err.println("排名已更新2" + DateUtils.getCurrent());
//			System.err.println("排名已更新3" + DateUtils.getCurrent());
//			System.err.println("排名已更新4" + DateUtils.getCurrent());
//			System.err.println("排名已更新5" + DateUtils.getCurrent());
//		}
	}

	

	

}
